import request from '@/utils/request'

export function getFirstCategorys(){
	return request({
		url:'/course/category/getFirstCategorys'
	})
}

export function getSecondCategorys( data ){
	return request({
		url:'/course/category/getSecondCategorys',
		params: data
	})
}

export function tagsList(data){
	return request({
		url:'/course/tags/list',
		method:'POST',
		data
	})
}

export function search(data){
	return request({
		url:'/course/search',
		method:'POST',
		data
	})
}

export function getSliders(){
	return request({
		url:'/slider/getSliders'
	})
}

export function mostNewCourse( data ){
	return request({
		url:'/course/mostNew',
		method:'post',
		data
	})
}

export function getSetting(){
	return request({
		url:'/setting/get'
	})
}